//
//  URLDataRequester.h
//  Mehfile Zainab
//
//  Created by Sitara Badourali on 01/12/12.
//  Copyright (c) 2012 Sitara Badourali. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "URLCacheConnection.h"
#import "MZNewsViewController.h"
#import "MZNews.h"
#import "FileManager.h"
#import "UIImage+Scale.h"

@interface URLDataRequester : NSObject <URLCacheConnectionDelegate> {

	NSString *filePath;
    
    URLCacheConnection *connection;
    NSString *dataPath;
	NSError *error;
	NSMutableArray *urlArray;
	NSDate *fileDate;

    MZNewsViewController *viewController;
    MZNews *news;
    
}

@property (nonatomic, copy) NSString *dataPath;
@property (nonatomic, retain) NSMutableArray *urlArray;
@property (nonatomic, copy) NSString *filePath;
@property (nonatomic, retain) NSDate *fileDate;
@property (nonatomic, retain) URLCacheConnection *connection;

@property (nonatomic, retain) MZNewsViewController *viewController;
@property (nonatomic, retain) MZNews *news;

- (void) loadDataWithURL:(NSURL *)theURL;

@end
